@prefix-cls: ~'inbiz-Cascader';

.@{prefix-cls} {
  .ant-select-selection-item {
    margin-inline-end: 8px;
    padding-inline-end: 8px;
  }
  .ant-select-selector{
    border-radius: var(--inbiz-border-radius-base) !important;
  }

  &-multiple-tag {
    color: var(--inbiz-color-text);
  }

  .ant-select-selection-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;

    .anticon-close {
      width: 14px;
      height: 14px;
      margin-left: 4px;
      color: #fff;
      line-height: 14px;
      background-color: #ccc;
      border-radius: 50%;
    }
  }
}
.inbiz-Cascader-dropdown {
  .ant-cascader-menu {
    min-width: 216px;
    min-height: 256px;
    padding: 8px;
    overflow: auto;
  }
  ::-webkit-scrollbar {
    width: 5px;
  }
  .ant-cascader-menu:hover::-webkit-scrollbar-thumb {
    border-radius: 2.5px;
    background: #d1d0ce;
  }
  ::-webkit-scrollbar-track {
    border-radius: 2.5px;
  }

  .ant-cascader-menu-item {
    padding: 5px 12px;
  }

  .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),
  .ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover {
    color: var(--inbiz-color-primary);
    font-weight: inherit;
    background-color: rgba(var(--inbiz-color-primary-toRGB), 0.15);

    .anticon-caret-right {
      color: var(--inbiz-color-primary);
    }
  }

  .ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner {
    background-color: var(--inbiz-color-primary);
    border-color: var(--inbiz-color-primary);

    &::after {
      width: 10px;
      height: 2px;
      background-color: #fff;
    }
  }

  .ant-cascader-menu-item:not([title]) {
    display: none;
  }

  .ant-cascader-menu-item[aria-checked='true'] {
    background-color: rgba(var(--inbiz-color-primary-toRGB), 0.15) !important;
  }

  .ant-cascader-menu-item-active {
    background-color: #f5f5f5 !important;
  }
}